package com.ltxtiyu.video.dao.ltx;

import com.ltxtiyu.video.entity.Topic;
import com.ltxtiyu.video.vo.ms.TopicVo;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;
import java.util.Map;
@Mapper
public interface TopicDao {
    int deleteByPrimaryKey(Integer id);

    int insertSelective(Topic record);

    Topic selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(Topic record);

    int updateByPrimaryKeyWithBLOBs(Topic record);

    int findByParamCount(Map<String, Object> map);

    List<TopicVo> findByParamList(Map<String, Object> map);

    List<Topic> selectHotTopicForBanner();

    Integer selectSumViewCount(Map<String, Object> map);

    Integer selectSumJoinCount(Map<String, Object> map);

    Integer selectSumVideoCount(Map<String, Object> map);

    List<Topic> selectHotTopicList(Map<String, Object> map);

    Topic selectByTopicNameAccurate(String topicName);



    List<Topic> findAll();
}